<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Reply extends Model
{
	const REPLY_TYPE_DOCTOR = 1;

	const REPLY_TYPE_USER = 2;

	public static $REPLYTYPE = [
		self::REPLY_TYPE_DOCTOR => '医生回复',
		self::REPLY_TYPE_USER => '用户回复'
	];

    protected $table = 'replys';

    protected $fillable = [
    	'reply_content',
    	'message_id',
    	'reply_type'
    ];

    public function message(){
    	return $this->belongsTo('App\Models\Message', 'message_id');
    }
}
